IIS application restart problem

The Problem

You may end up with problems like your IIS or Azure WebApp restarting over and over. Look in the MDrivenServer or TurnKey log files for this:

  • Azure Web App Restarting Automatically Due to Overwhelming Change Notification or IIS Configuration Change.

This is a known tricky area to handle within IIS.

web.config

There are settings in web.config to control how IIS monitors files that change in the website, and after a number of changed files, the app pool is recycled.

This is not how we want it to behave because we control site updates within MD and TK.

Both MD and TK have this setting set to Disabled with:

fcnMode="Disabled"

Empty Root Level in Your IIS or WebApp

However, you might still have this problem if you don't have the web.config at the root level.

So, if you have installed your MDrivenServer in the __MDrivenServer directory without having a TurnKey server installed at the root level, add this code in a web.config at the root level:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <location path="__MDrivenServer">
    <system.web>
      <httpRuntime maxRequestLength="2147483647" executionTimeout="300" targetFramework="4.5" requestValidationMode="2.0" fcnMode="Disabled" />
    </system.web>
  </location>
  <system.web>
    <httpRuntime maxRequestLength="2147483647" executionTimeout="300" targetFramework="4.5" requestValidationMode="2.0" fcnMode="Disabled"/>
  </system.web>
</configuration>
This page was edited more than 6 months ago on 06/17/2024. What links here